Python how to add create blocks from multiline text

welcome to shbcf.ru